
import net.sourceforge.floggy.persistence.FloggyException;
import net.sourceforge.floggy.persistence.Persistable;
import net.sourceforge.floggy.persistence.PersistableManager;

public class Record implements Persistable{

    public String nome = "";
    public int pontos = 0;

    public Record(String nome, int pont) {
        this.nome = nome;
        this.pontos = pont;
    }

    public Record() {
        nome = "";
        pontos = 0;
    }

    public void save() throws FloggyException {
        PersistableManager.getInstance().save(this);
    }
}
